import java.util.Scanner;

public class Student {
    public static void main(String[] args) {
        Scanner ch = new Scanner(System.in);
        int c = 0;
        int a = 10;
        while (a == 10) {
            c = ch.nextInt();
            System.out.print(c+" ");
        }
    }

    public static void main6(String[] args) {
        Scanner ch = new Scanner(System.in);
        String c = ch.nextLine();
        String d = ch.nextLine();
        if(c.equals(d)) {
            System.out.println("same");
        } else {
            System.out.println("different");
        }
    }



    //用函数求一个数的二进制位中有几个1
    public static int math(int x) {
       int z = 0;
        while(x != 0) {
            if ((x % 2) == 1) {
                z++;
            }
            x /= 2;
        }
        return z;
    }
    public static void main5(String[] args) {
        Scanner ch = new Scanner(System.in);
        int n = ch.nextInt();
        int a = math(n);
        System.out.println("有"+a+"个一");
    }

    public static void main4(String[] args) {
        //100~999的水仙花数
        int a , b , c;
        for (int i = 100; i <= 999; i++) {
                a = i % 10;
                b = (i /10 ) % 10;
                c = i/100;
            if ( (a * a * a + b * b * b + c * c * c) == i) {
                System.out.println(i);
            }
        }
    }
    public static void main3(String[] args) {
        //最大公约数 --辗转相除
        Scanner ch = new Scanner(System.in);
        int a = ch.nextInt();
        int b = ch.nextInt();
        int c = a % b;
        while (c != 0) {
            a = b;
            b = c;
            c = a % b;
        }
        System.out.println(b);
    }



//----------------------------------素数
    public static void main2(String[] args) {
        Scanner ch = new Scanner(System.in);
        int n = ch.nextInt();
        int i = 2;
        for (; i <= Math.sqrt(n); i++) {
            if(n % i == 0){
                break;
            }
        }
        if(i > Math.sqrt(n)) {
            System.out.println(n+"是素数");
        }
    }
    public static void main1(String[] args) {
        Scanner ch = new Scanner(System.in);
        int n = ch.nextInt();
        int i = 2;
        for (; i <= n / 2 ; i++) {
            if (n % i == 0) {
                break;
            }
        }
        if(i > n / 2) {
            System.out.println(n+"是素数");
        }
    }
}